package com.ysh.webflux.service;


import com.ysh.webflux.pojo.User;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

/**
 * Created by Jackiechan on 2022/9/22 9:53
 *
 * @author Jackiechan
 * @version 1.0
 * @since 1.0
 */
public interface UserService {

    Mono<User> findById(Long id);

    void addUser(User user);

    Flux<User> findAllUser();

    Flux<User> findByNameLike(String name);

    Mono<User> findByNameEquals(String name);

    Mono<Integer> deleteByNameEquals(String name);

    void updateUser(User user);

    Mono<User> findFirstByNameLike(String name);


}
